package setting

import "onvif_server/internal/model"

const (
	BoxName     = "box.name"
	BoxLocation = "box.location"

	NetworkDefault = "network.default"

	AlarmOpenCleanup = "alarm.open_cleanup"
	AlarmCleanupDays = "alarm.cleanup_days"

	StorageDriver = "storage.driver"
	StorageOss    = "storage.oss"
	StorageCos    = "storage.cos"
)

var defaultSettings = []model.Setting{
	model.Setting{
		Name: "默认网卡",
		Val:  "",
		Key:  "network.default",
		Type: TypeString,
	},
	model.Setting{
		Name: "开启数据清理",
		Val:  "false",
		Key:  "data_cleanup.open",
		Type: TypeBool,
	},
	model.Setting{
		Name: "告警数据保留天数",
		Val:  "60",
		Key:  "data_cleanup.days",
		Type: TypeInt,
	},
	model.Setting{
		Name: "开启告警提示",
		Val:  "true",
		Key:  "alarm.open",
		Type: TypeBool,
	},
	model.Setting{
		Name: "开启告警弹窗",
		Val:  "true",
		Key:  "alarm.open_popup",
		Type: TypeBool,
	},
	model.Setting{
		Name: "开启告警声音",
		Val:  "true",
		Key:  "alarm.open_voice",
		Type: TypeBool,
	},
}
